/*
 * @Author: canlong.shen
 * @Date: 2021-10-28 10:49:42
 * @LastEditors: your name
 * @LastEditTime: 2021-11-01 13:14:02
 * @Description: file content
 */


 const HtmlWebpackPlugin = require('html-webpack-plugin')
const { VueLoaderPlugin } = require('vue-loader')
module.exports = {
    
    mode: 'development',
    entry: './src/main.js',
    module: {
        rules: [
            // vue 校验规则
            {
                test: /\.vue$/,
                loader:'vue-loader'
            }
        ]  
    },
    resolve: {
        alias: {
            vue: 'vue/dist/vue.esm.js'
        }
    },
    plugins: [
        new HtmlWebpackPlugin({
            template:'./src/index.html'
        }),
        new VueLoaderPlugin()
    ]

 }